<div class="bh-ly-yw-dianpu-fenlei">
	<h4 class="bh-ly-yw-shang">产品分类</h4>
	<div class="bh-ly-yw-dianpu-fen">
		<ul>
			<?php foreach ($model as $one):?>
			<li class='cate-ul' key='ul-<?php echo $one->id?>'><a href='javascript:void(0)'><?php echo $one->name?></a>
				<ul class="bh-ly-yw-yin cate-ul-content" style='display:none' scope='ul-<?php echo $one->id?>'>
					<?php foreach ($one->relateds as $val):?>
						<li><a href='<?php echo CHtml::value($val, 'goods.sVurl')?>'><?php echo CHtml::value($val, 'goods.fullTitle')?></a></li>
					<?php endforeach;?>
				</ul>
			</li>
			<?php endforeach;?>
		</ul>
	</div>
</div>
<script>
$('.cate-ul').click(function() {
	hover = 'bh-ly-yw-kai';
	scope = $(this).attr('key');
	
	if($(this).hasClass(hover)) {
		$(this).removeClass(hover);
		$('.cate-ul-content[scope='+scope+']').hide();
	} else {
		$(this).addClass(hover);
		$('.cate-ul-content[scope='+scope+']').show();
	}
	
});
</script>